#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable:6031)
#include<iostream>
#include<list>


void test1()
{
	std::list<int> ls;
	ls.push_back(1);
	ls.push_back(2);
	ls.push_back(3);
	ls.push_back(4);
	std::list<int>::iterator it = ls.begin();

	while (it != ls.end())
	{
		std::cout << *it << ' ';
		it++;
	}
	std::cout << std::endl;
}

void test2()
{
	std::list<int> ls;
	ls.push_back(1);
	ls.push_back(2);
	ls.push_back(3);
	ls.push_back(4);
	ls.emplace_back(5);
	std::cout << ls.back() << std::endl;
	std::cout << ls.front() << std::endl;
	ls.pop_front();
	ls.
	std::list<int>::iterator it = ls.begin();

	while (it != ls.end())
	{
		std::cout << *it << ' ';
		it++;
	}
	std::cout << std::endl;
}
int main()
{
	test2();
	return 0;
}